package com.garygyp.vod.utils;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author GaryGyp
 * @date 2022/5/15 16:56
 * @description
 */
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.vod.file")
public class ConstantVodUtils implements InitializingBean {

    private String keyid;

    private String keysecret;

    public static String ACCESSKEY_ID;

    public static String ACCESSKEY_SECRET;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESSKEY_ID = keyid;
        ACCESSKEY_SECRET = keysecret;
    }
}
